home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / emula / arosdv19.lha / AROS / devs / nil_handler_gcc.h < prev    next >
C/C++ Source or Header  |  1996-10-24  |  1KB  |  49 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: nil_handler_gcc.h,v 1.3 1996/10/24 15:50:22 aros Exp $
  4.     $Log: nil_handler_gcc.h,v $
  5.     Revision 1.3  1996/10/24 15:50:22  aros
  6.     Use the official AROS macros over the __AROS versions.
  7.  
  8.     Revision 1.2  1996/10/19 17:03:56  aros
  9.     Wrong #define to protect the file
  10.  
  11.     Revision 1.1  1996/09/11 12:52:54  digulla
  12.     Two new devices by M. Fleischer: RAM: and NIL:
  13.  
  14.     Revision 1.2  1996/08/01 17:41:23  digulla
  15.     Added standard header for all files
  16.  
  17.     Desc:
  18.     Lang:
  19. */
  20. #ifndef NIL_HANDLER_GCC_H
  21. #define NIL_HANDLER_GCC_H
  22. #include <aros/libcall.h>
  23. #include <exec/execbase.h>
  24. #include <exec/devices.h>
  25. #include <dos/dos.h>
  26.  
  27. struct nilbase
  28. {
  29.     struct Device device;
  30.     struct ExecBase *sysbase;
  31.     struct DosLibrary *dosbase;
  32.     BPTR seglist;
  33. };
  34.  
  35. #define expunge() \
  36. AROS_LC0(BPTR, expunge, struct nilbase *, nilbase, 3, nil_handler)
  37.  
  38. #ifdef SysBase
  39.     #undef SysBase
  40. #endif
  41. #define SysBase nilbase->sysbase
  42. #ifdef DOSBase
  43.     #undef DOSBase
  44. #endif
  45. #define DOSBase nilbase->dosbase
  46.  
  47. #endif
  48.  
  49.